package com.syh.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author 20178
 */
@Data
@Component
@ConfigurationProperties(prefix = "oss.config")
public class OssConfig {

    public boolean enable = true;

    /**
     * oss地址 创建对象存储的域名
     */
    public String endpoint = "https://oss-cn-beijing.aliyuncs.com/";

    /**
     * oss认证key
     */
    public String accesskeyid = "LTAI5t9bG5SN4R9LKYqAw9EM";

    /**
     * oss认证密钥
     */
    public String accesskeysecret = "EHV7yExXK5gbnpGOxCAB0GaZxx4xfl";

    /**
     * 创建的bucket name
     */
    public String bucketname = "exam-syh";

    /**
     * 目录
     */
    public String key = "images/upload/";

    /**
     * 阿里域名
     */
    public String host = "https://exam-syh.oss-cn-beijing.aliyuncs.com/";

}
